From: Aaron Schulz Date: Wed, 22 Apr 2015 13:11:25 +0000 (-0700) Subject: Lowered $maxAllowedLag to 3 in JobRunner X-Git-Tag: 1.31.0-rc.0~11627^2 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=05a5ec406dcd8686666294a5530bc4d3966afbcc;p=lhc%2Fweb%2Fwiklou.git Lowered $maxAllowedLag to 3 in JobRunner Change-Id: I7cb771c667bac21e9b67069e31c6243d9314dac5 --- diff --git a/includes/jobqueue/JobRunner.php b/includes/jobqueue/JobRunner.php index d5262a1175..85f9c2c656 100644 --- a/includes/jobqueue/JobRunner.php +++ b/includes/jobqueue/JobRunner.php @@ -123,8 +123,8 @@ class JobRunner implements LoggerAwareInterface { $trxProfiler->setExpectation( 'maxAffected', 500, __METHOD__ ); // Bail out if there is too much DB lag - $maxAllowedLag = 5; - list( , $maxLag ) = wfGetLBFactory()->getMainLB( wfWikiID() )->getMaxLag(); + $maxAllowedLag = 3; + list( , $maxLag ) = wfGetLB( wfWikiID() )->getMaxLag(); if ( $maxLag >= $maxAllowedLag ) { $response['reached'] = 'slave-lag-limit'; return $response;